import request from '@/utils/request'

// 查询考试前沿列表
export function listIntro(query) {
  return request({
    url: '/hyg/intro/list',
    method: 'get',
    params: query
  })
}

// 查询考试前沿详细
export function getIntro(id) {
  return request({
    url: '/hyg/intro/' + id,
    method: 'get'
  })
}

// 新增考试前沿
export function addIntro(data) {
  return request({
    url: '/hyg/intro',
    method: 'post',
    data: data
  })
}

// 修改考试前沿
export function updateIntro(data) {
  return request({
    url: '/hyg/intro',
    method: 'put',
    data: data
  })
}

// 删除考试前沿
export function delIntro(id) {
  return request({
    url: '/hyg/intro/' + id,
    method: 'delete'
  })
}
